package net.csdn.business.webhook.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.csdn.business.common.domain.SuperEntity;

import java.util.Date;

/**
 * webhook通知日志对象 webhook_log
 * 
 * @author zhangyal
 * @date 2023-04-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("webhook_log")
public class WebhookLog extends SuperEntity<WebhookLog>
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "`id`", type = IdType.AUTO)
    private Long id;

    /** objectId */
    private String objectId;

    /** deliveryId */
    private String deliveryId;

    /** web_hook_id配置的ID */
    private String webHookId;

    /** webhook触发的事件 */
    private String triggerEvent;

    /** webhook通知url */
    private String reqUrl;

    /** webhook通知请求头 */
    private String reqHeaders;

    /** webhook通知请求参数 */
    private String reqData;

    /** webhook通知响应头 */
    private String resHeaders;

    /** webhook通知响应体 */
    private String resBody;

    /** webhook通知响应状态码 */
    private String resStatus;

    /** webhook通知执行时间 */
    private Double execDuration;

    /** webhook内部错误信息 */
    private String internalErrorMessage;

    /** 是否重试：true：是；false：否 */
    private Boolean  isRedelivery=false;

}
